package com.zf.spring.eureka;

import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.server.EnableEurekaServer;

/**
 * 
 * eureka服务发现程序入口。
 * 
 * @author zhangFeng
 * @since 1.0.0_Jan 24, 2017
 */
@SpringBootApplication
@EnableEurekaServer
@EnableDiscoveryClient
public class EurekaApplication {

	public static void main(String[] args) throws Exception {
		new SpringApplicationBuilder(EurekaApplication.class).web(true).run(args);
	}

}
